<?php
/**
 * Created by PhpStorm.
 * User: River
 * Email: river0428@gmail.com
 * Date: 2018/6/11
 * Time: 下午1:29
 */

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class AdminUser extends Model
{
    use SoftDeletes;

    protected $table = 'admin_user';

    protected $hidden = ['password'];

    protected $guarded = [];

    public function role()
    {
        return $this->belongsTo(AdminRole::class, 'role_id', 'id');
    }
}